home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
- <%
-
- if Request.ReqParam("action") = "Empty cache" Then
- Cache.ClearCache()
- End If
-
- if Request.ReqParam("action") = "Commit" Then
- ' Process the Cache settings
- if Request.ReqParam("Size") <> "" then
- Cache.Size = Request.ReqParam("Size")
- else
- Cache.Size = 5
- end if
-
-
- if Request.ReqParam("LeaseDuration") = "Never" Then
- Cache.TimeToLive =24*365
- End If
-
- if Request.ReqParam("LeaseDuration") = "Every time" Then
- Cache.TimeToLive =0
- End If
-
- if Request.ReqParam("LeaseDuration") = "After" Then
-
- if Request.ReqParam("TTL") <> "" then
- Cache.TimeToLive = Request.ReqParam("TTL")
- else
- Cache.TimeToLive = 6
- end if
-
- End If
-
-
-
-
- On Error Resume Next
- Cache.Commit
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- else
- Response.Redirect("hlpServices.htm")
- End If
- End If
- %>
- <p><big><strong><font face="Arial">Edit the Cache service</font></strong></big></p>
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
-
- <form method="POST" action= "/services/editcache.agp">
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="40%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Option
- </font></strong></td>
- <td width="60%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Value
- </font></strong></td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Cache size (in MB)
- </font></strong></td>
- <td width="60%">
- <input type="text" size="10" maxlength="4" name="Size" value="<%Response.Write(Cache.Size)%>">
- </td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Current cache size (in MB)
- </font></strong></td>
- <td width="60%"><font face="Arial">
- <%Response.Write(Cache.CurrentExactSize)%>
- (<%Response.Write(Cache.CurentByteSize)%> bytes)
- </font></td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Cache directory
- </font></strong></td>
- <td width="60%"><font face="Arial">
- <%Response.Write(Cache.CacheDirectory)%>
- </font></td>
- </tr>
- </table>
-
- <p><big><strong><font face="Arial">Compare with original resource</font></strong></big></p>
-
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="10%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Selection
- </font></strong></td>
- <td width="90%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Meaning
- </font></strong></td>
- </tr>
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive <> 0 and Cache.TimeToLive <> 8760 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="After" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="After" UNCHECKED>
- <%
- End If
- %>
- </center>
- </td>
-
- <td width="90%">
- After
- <input type="text" size="10" maxlength="4" name="TTL" value="<%Response.Write(Cache.TimeToLive)%>">
- hours
- </td>
-
-
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive = 0 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Every time" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Every time" UNCHECKED>
- <%
- End If
- %>
-
- </center>
- </td>
- <td width="90%">Every time</td>
- </tr>
-
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive = 8760 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Never" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Never" UNCHECKED>
- <%
- End If
- %>
-
-
- </center>
- </td>
- <td width="90%">Never</td>
- </tr>
-
- </tr>
-
-
- </table>
-
- <br>
- <input type="submit" name="action" value="Commit">
- <input type="submit" name="action" value="Empty cache">
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-